#include "lcd.h"

#define LCD_FB_BASE 0x33c00000

lcd_params lcd_4_3_params = {
    .name = "lcd_4.3",
    .pins_pol = {
	.de = NORMAL,
	.pwren = NORMAL,
	.vclk = NORMAL,
	.rgb = NORMAL,
	.hsync = INVERT,
	.vsync = INVERT,
    },
    .time_seq = {
	.tvp = 10, //vysnc 脉冲宽度
	.tvb = 2,  // 上边黑框 vertical back porch
	.tvf = 2,  // 下边黑框

	.thp = 41, //hsync 
	.thb = 2,
	.thf = 2,

	.vclk = 9, //MHz
    },
    .xres = 480,
    .yres = 272,
    .bpp = 32, //16 ,no 24bpp
    .fb_base = LCD_FB_BASE,
};

void lcd_4_3_add(void)
{
    register_lcd(&lcd_4_3_params);
}
